<?php  
require_once "../../../include.php";
checkLogin(); 
$id=$_REQUEST['id'];
$sql="select cName,cImg,serial,state from cate where id=$id";
$row=fetchOne($sql);
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
	<title>修改产品分类</title>
	<link rel="stylesheet" href="../../vender/sui/sui.min.css">
	<link rel="stylesheet" href="../../css/style.css">
	<link rel="stylesheet" href="../../css/admin.css">
</head>
<body>
<div class="content-title">
	<h4>修改产品分类</h4>
	<a href="javascript:;" class="goback" onclick="goBack()"><<返回列表</a>
</div>
<div class="content-wrapper">
	<form id="proClassEdit" class="sui-form form-horizontal" novalidate="novalidate" method="post" enctype="multipart/form-data" action="../../doAdminAction.php?act=cLassEdit&id=<?php echo $id;?>">
	    <div class="control-group">
	      <label class="control-label">分类名称：</label>
	      <div class="controls">
	        <input type="text" name="cName" placeholder="分类名称"  class="input-fat" value="<?php echo $row["cName"];?>">
	      </div>
	    </div>
		<div class="control-group">
	      <label class="control-label">分类图片：</label>
	      <div class="controls">
	        <div class="uploadbox">
				<input type="file" name="fileImg" class="fileImg" accept="image/*"/>
				<img class="uploadImg" src="../../uploadimg/cate/<?php echo $row["cImg"];?>">
			</div>
	      </div>
	    </div>
	    <div class="control-group">
	      <label class="control-label">序号：</label>
	      <div class="controls">
	        <input type="text" name="serial" placeholder="序号"  class="input-fat" value="<?php echo $row["serial"];?>">
	        <div class="sui-msg msg-info">
			    <div class="msg-con">数字越大，越靠前</div>
			    <s class="msg-icon"></s>
			</div>
	      </div>
	    </div>
	    <div class="control-group">
			<label class="control-label">状态：</label>
			<div class="controls">
				<label data-toggle="radio" class="radio-pretty inline <?php if($row['state']==1){ echo "checked";} ?>">
					<input type="radio" name="state" value="1" <?php if($row['state']==1){ echo "checked";} ?>><span>有效</span>
				</label>
				<label data-toggle="radio" class="radio-pretty inline <?php if($row['state']==0){ echo "checked";} ?>">
					<input type="radio" name="state" value="0" <?php if($row['state']==1){ echo "checked";} ?>><span>无效</span>
				</label>
			</div>
		</div>
	    <div class="control-group">
	      <label class="control-label"></label>
	      <div class="controls">
	        <button type="submit" class="sui-btn btn-primary">保存</button>
	      </div>
	    </div>
	</form> 
</div>
</body>
</html>
<script src="../../vender/jquery/jquery-1.11.1.js"></script>
<script src="../../vender/jquery/jquery.alerts.js"></script>
<script src="../../vender/sui/sui.js"></script>
<script src="../../scripts/admin.js"></script>
<script src="../../scripts/shop/proClass.js"></script>